package com.ruoyi.ui.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 普通商品订单对象 ui_order
 * 
 * @author ruoyi
 * @date 2022-09-06
 */
public class UiOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单id */
    private Long orderId;

    /** 支付方式id */
    @Excel(name = "支付方式id")
    private String payId;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String paytype;

    /** 店铺id */
    @Excel(name = "店铺id")
    private Long shopId;

    /** 店铺名称 */
    @Excel(name = "店铺名称")
    private String shopName;

    /** 商品id */
    @Excel(name = "商品id")
    private Long proId;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String proName;


    /** 地址id */
    @Excel(name = "地址id")
    private Long addrId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long memberId;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickName;

    /** 评论id */
    @Excel(name = "评论id")
    private Long commentId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String commentTitle;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNum;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 发货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliveryTime;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal oneprice;

    /** 完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date finallyTime;

    /** 数量 */
    @Excel(name = "数量")
    private Long count;

    /** 总价 */
    @Excel(name = "总价")
    private BigDecimal totalprice;

    /** 状态 1:待付款 2:待发货 3:待收货(已发货) 5:成功 6:失败 */
    @Excel(name = "状态 1:待付款 2:待发货 3:待收货(已发货) 5:成功 6:失败")
    private Integer state;

    /** 补充字段1 */
    private String remark1;

    /** 补充字段2 */
    private String remark2;


    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }
    public void setPayId(String payId)
    {
        this.payId = payId;
    }

    public String getPayId()
    {
        return payId;
    }
    public void setShopId(Long shopId) 
    {
        this.shopId = shopId;
    }

    public Long getShopId() 
    {
        return shopId;
    }
    public void setProId(Long proId) 
    {
        this.proId = proId;
    }

    public Long getProId() 
    {
        return proId;
    }
    public void setAddrId(Long addrId) 
    {
        this.addrId = addrId;
    }

    public Long getAddrId() 
    {
        return addrId;
    }
    public void setMemberId(Long memberId) 
    {
        this.memberId = memberId;
    }

    public Long getMemberId() 
    {
        return memberId;
    }
    public void setCommentId(Long commentId) 
    {
        this.commentId = commentId;
    }

    public Long getCommentId() 
    {
        return commentId;
    }
    public void setOrderNum(String orderNum) 
    {
        this.orderNum = orderNum;
    }

    public String getOrderNum() 
    {
        return orderNum;
    }
    public void setOrderTime(Date orderTime) 
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime() 
    {
        return orderTime;
    }
    public void setDeliveryTime(Date deliveryTime) 
    {
        this.deliveryTime = deliveryTime;
    }

    public Date getDeliveryTime() 
    {
        return deliveryTime;
    }
    public void setOneprice(BigDecimal oneprice) 
    {
        this.oneprice = oneprice;
    }

    public BigDecimal getOneprice() 
    {
        return oneprice;
    }
    public void setFinallyTime(Date finallyTime) 
    {
        this.finallyTime = finallyTime;
    }

    public Date getFinallyTime() 
    {
        return finallyTime;
    }
    public void setCount(Long count) 
    {
        this.count = count;
    }

    public Long getCount() 
    {
        return count;
    }
    public void setTotalprice(BigDecimal totalprice) 
    {
        this.totalprice = totalprice;
    }

    public BigDecimal getTotalprice() 
    {
        return totalprice;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }
    public void setRemark1(String remark1) 
    {
        this.remark1 = remark1;
    }

    public String getRemark1() 
    {
        return remark1;
    }
    public void setRemark2(String remark2) 
    {
        this.remark2 = remark2;
    }

    public String getRemark2() 
    {
        return remark2;
    }

    public String getPaytype() {
        return paytype;
    }

    public void setPaytype(String paytype) {
        this.paytype = paytype;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getCommentTitle() {
        return commentTitle;
    }

    public void setCommentTitle(String commentTitle) {
        this.commentTitle = commentTitle;
    }

    @Override
    public String toString() {
        return "UiOrder{" +
                "orderId=" + orderId +
                ", payId=" + payId +
                ", paytype='" + paytype + '\'' +
                ", shopId=" + shopId +
                ", shopName='" + shopName + '\'' +
                ", proId=" + proId +
                ", proName='" + proName + '\'' +
                ", addrId=" + addrId +
                ", memberId=" + memberId +
                ", nickName='" + nickName + '\'' +
                ", commentId=" + commentId +
                ", commentTitle='" + commentTitle + '\'' +
                ", orderNum='" + orderNum + '\'' +
                ", orderTime=" + orderTime +
                ", deliveryTime=" + deliveryTime +
                ", oneprice=" + oneprice +
                ", finallyTime=" + finallyTime +
                ", count=" + count +
                ", totalprice=" + totalprice +
                ", state=" + state +
                ", remark1='" + remark1 + '\'' +
                ", remark2='" + remark2 + '\'' +
                '}';
    }
}
